import request from '@/utils/request'

// 查询人员日期关联列表
export function listDates(query) {
  return request({
    url: '/inspection/dates/list',
    method: 'get',
    params: query
  })
}

// 查询人员日期关联详细
export function getDates(id) {
  return request({
    url: '/inspection/dates/' + id,
    method: 'get'
  })
}

// 新增人员日期关联
export function addDates(data) {
  return request({
    url: '/inspection/dates',
    method: 'post',
    data: data
  })
}

// 修改人员日期关联
export function updateDates(data) {
  return request({
    url: '/inspection/dates',
    method: 'put',
    data: data
  })
}

// 删除人员日期关联
export function delDates(id) {
  return request({
    url: '/inspection/dates/' + id,
    method: 'delete'
  })
}
